if __name__ == '__main__':
    i = 2
    j = 3
    b = None
    li1 = list()
    ke = 2
    va = 3
    aaaa=2/3
    # 将分子/分母存入列表
    for a in range(30):
        li1.append([i, j])
        b = i
        i = j + 1
        j = b + j
    # 计算前30项的和
    for a2 in range(1, 30):
        aaaa += li1[a2][0] / li1[a2][1]
    # print(str(ke) + "/" + str(va))
    print(aaaa)
    # 看一下list
    # for ij in li1:
    #     print(ij)
    pass
